<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "xxshare_cases".
 *
 * @property integer $id
 * @property string $name
 * @property string $picture
 * @property string $url
 * @property string $tag
 * @property integer $status
 * @property string $time
 * @property string $qq
 * @property string $wechat
 * @property string $tel
 */
class Cases extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'xxshare_cases';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['picture', 'url', 'tag'], 'required'],
            [['picture'], 'string'],
            [['status'], 'integer'],
            [['name'], 'string', 'max' => 50],
            [['url', 'tag', 'time', 'qq', 'wechat', 'tel'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'picture' => 'Picture',
            'url' => 'Url',
            'tag' => 'Tag',
            'status' => 'Status',
            'time' => 'Time',
            'qq' => 'Qq',
            'wechat' => 'Wechat',
            'tel' => 'Tel',
        ];
    }
}
